from django.db import models

 # Create your models here.
 #class blog (models.Model):
 #owner_name = models.CharField(max_length=10)

 
class Post (models.Model):
 title = models.CharField(max_length=100)
 body = models.TextField()
 created = models.DateTimeField()
# blog = models.ForeignKey(blog)

 
class category (models.Model):
 title = models.CharField(null = False, blank = False, max_length=100)
 Post = models.ForeignKey(Post)



class Page (models.Model):
 title = models.CharField(null = False, blank = False, max_length=100)
 body = models.TextField()

 
#def __unicode__ (self):
 #return self.title

